lib/commit: Copy user.ostreemeta only for bare-user
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 31 Oct 2018 19:27:26 +0000 (15:27 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 13 Nov 2018 15:15:13 +0000 (15:15 +0000)
commit244d9a7ec1a08c0c7adf495a8b341798009556e1
tree1d493f62b4996ad5d6045c307ef533e83fe15960
parent8eac5be030797607715d5a2d973c55edff78a8a2
lib/commit: Copy user.ostreemeta only for bare-user

When falling back to copying objects when importing them into a
bare-user repo, we only actually need to transfer over the
`user.ostreemeta` xattr.

This allows the destination repo to be on a separate filesystem that
might not even support `security.selinux`. (I hit this while importing
over virtio-9p).

Closes: #1771
Approved by: cgwalters
src/libostree/ostree-repo-commit.c